import { computed } from "vue";
import type { IFlowGraphContext } from "../core/create";

export { default as useNodeData } from "./useNodeData";

export function useCurrentCell<T>(context: Required<IFlowGraphContext>) {
	return {
		config: computed<T>(() => context.activeCell.value.data.config)
	};
}
